package com.cadre.common.utils.oldutil.officerenum;

/* loaded from: ZhuanYeEnum.class */
public enum ZhuanYeEnum {
    WENXUE("05", "文学"),
    ZHEXUE("01", "哲学"),
    GONGXUE("08", "工学"),
    LISHIXUE("06", "历史学"),
    LIXUE("07", "理学"),
    NONGXUE("09", "农学"),
    YIXUE("10", "医学"),
    JINGJIXUE("02", "经济学"),
    FAXUE("03", "法学"),
    JIAOYUXUE("04", "教育学"),
    QITA("00", "其他");
    
    private String name;
    private String value;

    ZhuanYeEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return this.name;
    }

    public String getValue() {
        return this.value;
    }

    public static String getValueByName(String name) {
        ZhuanYeEnum[] values = values();
        for (ZhuanYeEnum zhuanyeEnum : values) {
            if (zhuanyeEnum.name.equalsIgnoreCase(name)) {
                return zhuanyeEnum.value;
            }
        }
        return LIXUE.value;
    }
}
